﻿<?xml version="1.0" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"
	namespace="DataAccess" assembly="DataAccess">

  <class name="DataAccess.Document, DataAccess" table="MODULE_DOC">
    <id name="Id" column="ID" type="Int64">
		<generator class="identity"/>
    </id>
    <property name="Name" type="String" column="SHORT_NAME"/>
    <property name="Description" type="String" column="DESCRIPTION"/>
	<property name="Entity" type="String" column="DOC"/>
	<list name="Modules" table="DOC2MODULE">
		<key column="DOC_ID" />
		<index column="ID" />
		<many-to-many
			column="MODULE_ID"
			class="DataAccess.EducationModule, DataAccess"
			outer-join="true" />
    </list>
  </class>
</hibernate-mapping>

